<template>
  <div id="we">
    <div class="header">
      <Header :name="name"></Header>
    </div>
    <div class="wes">
      <img src="../../../public/剪切.png" alt="" />
      <p>美发服务V1.1.0</p>
    </div>
    <div class="list">
      <div v-for="item in data" :key="item.id">
        <p>{{ item.name }}</p>
        <van-icon name="arrow" />
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, reactive } from "vue";
import Header from "./Header.vue";
import { useRoute } from "vue-router";

const route = useRoute();
const name = route.query.name;
console.log(name);

const data = reactive([
  { id: 1, name: "开发商" },
  { id: 2, name: "合作伙伴" },
  { id: 3, name: "无障碍" },
  { id: 4, name: "使用条款" },
  { id: 5, name: "使用反馈" },
  { id: 6, name: "评价我们" },
  { id: 7, name: "访问我们的网站" },
  { id: 8, name: "在社交媒体上关注我们" },
]);
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}

#we {
  width: 100vw;
  height: 100vh;
}

.wes {
  width: 100%;
  text-align: center;
}

.wes img {
  width: 6rem;
  height: 6rem;
}

.wes p {
  font-size: 1.1rem;
}

.list {
  width: 90%;
  margin-left: 5%;
}

.list div {
  width: 100%;
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>